/*
 * Created on 2-Jul-06
 * Filename: YesCommand.java
 * @author Daniel Yule
 * 
 */
package com.danicsoft.daide.command;


import com.danicsoft.daide.token.TokenGroup;
import com.danicsoft.daide.token.TokenMap;


public class YesCommand extends ReducibleCommand {
	
	public YesCommand(Command command) {
		this.command = command;
		setStatus(COMMAND_STATUS.ACCEPTED);
	}

	public YesCommand(TokenGroup tokens) throws ParseException {
		super(tokens);
	}



	@Override
	public String toString() {
		return new StringBuilder("Server accepted:\n").append(command.toString()).toString();
	}

	

	@Override
	public byte getType() {
		return TokenMap.Commands.YES;
	}

	@Override
	public COMMAND_STATUS getStatus() {
		return COMMAND_STATUS.ACCEPTED;
	}

}
